<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>潜在商机</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css">
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <link rel="stylesheet" href="../../../css/wx/wx-iconfont.css"/>
    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/gwcxd/qzsj"],
            cb: function (o) {

                // 不影响初始页面的js, 可以延迟引入
                require(['wx-iconfont'], $.noop);

                app.requireCss(['icons-extra', 'animate.min'], doc);

            }
        };
    </script>
    <script data-main="../../../js/wx/public/config.js" src="../../../js/require.js"></script>
    <style>
        .mui-content {
            padding: 0;
        }

        .mui-control-content {
            min-height: -webkit-fill-available;
        }

        .mui-bar-nav ~ .mui-content .mui-pull-top-pocket {
            top: 0;
        }

        .mui-table-view-cell:after {
            height: 0;
        }

        .mui-card {
            margin-bottom: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: -3px;
            left: 10px !important;
        }

        .footBtn button {
            font-size: 15px;
        }

        .footBtn.flexl .mui-checkbox.mui-left label {
            padding-left: 36px;
        }
        .mui-scroll {
            position: inherit;
        }
        .flexl{
            display: none;
        }
        .wf-slider-bottom {
            bottom: 0;
        }
    </style>

</head>

<body>
<!--搜索-->
<div class="mui-content">
    <div id="searchs" class="search1">
        <form action="javascript:app.returnFalse();">
        <div class="search">
            <span class="iconfont icon icon-007 leftIco"></span>
            <input @search="toSearch"
                   v-model="md.keyword"
                   type="search" class="mui-input-clear"
                   placeholder="客户名称、联系人">
        </div></form>
    </div>

<!--列表-->
<div id="slider" class="mui-slider responseSlider xdcx wf-slider-bottom">
    <div id="sliderSegmentedControl"
         class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted shadow">
        <a class="mui-control-item" href="#item1mobile">
            未成单
        </a>
        <a class="mui-control-item" href="#item2mobile">
            已成单
        </a>
    </div>
    <div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-6"></div>
    <div class="mui-slider-group">
        <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
            <div id="scrollY" class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <sjzpitem-template :model="items"></sjzpitem-template>
                </div>
            </div>
        </div>
        <div id="item2mobile" class="mui-slider-item mui-control-content">
            <div id="scrollZ" class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <sjzpitem-template :model="items"></sjzpitem-template>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="footdiv" class="footBtn flexl shadow2 hide">
    <div class="mui-checkbox mui-left" style="flex: 1;">
        <label>全选</label>
        <input v-model="ischecked" @change="toChecked" :true-value="'1'" :false-value="'0'" type="checkbox">
    </div>
    <button v-show="inx==1" @tap.stop="toCancel" type="button" class="wf-third-bg edit" style="width: 30%;">取消成单</button>
    <button v-show="inx==0" @tap.stop="toSubmit" type="button" class="wf-second-bg edit" style="width: 20%;">成单</button>
</div>
</div>
<script id="sjzpitem-template" type="text/x-template">
    <div>
        <div v-for="val in model" class="mui-card">
            <div class="mui-card-header">
                {{val.GWAKL003}}({{val.GWAK031}})
            </div>
            <div @tap.stop="showDetail(val)" class="mui-card-content">
                <div class="mui-card-content-inner slider mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
                    <ul class="mui-scroll">
                        <li v-for="c in val.details" class="mui-control-item">
                            <a href="#"><img :src="c.GWAM015 | goodsImgsUtils"></a>
                            <div class="filer">
                                <p>￥{{c.GWBK004 |priceFMT}}<em>/</em>
                                    <span>{{c.GWBK003}}</span></p>
                                <p class="wf-font-color"><i class="iconfont icon icon-0012"></i>
                                {{c.GWBK005 |priceFMT}}</p>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="flex-just" style="padding: 5px 15px">
                    <p>单号：{{val.GWBKNAME}}</p>
                    <!--<p class="wf-font-color">¥1000.00</p>-->
                </div>
            </div>
            <div class="mui-card-footer" :class="statueImg(val)">
                <p>
                    <a v-if="val.status=='Z'" @tap.stop="toCancel(val)" href="javascript:;"
                       class="wf-font-color">取消成单</a>
                    <a v-if="val.status=='Y'" @tap.stop="toSubmit(val)" href="javascript:;"
                       class="wf-sfont-color">成单</a>
                </p>
            </div>
        </div>
    </div>
</script>
</body>

</html>